package com.ruoyi.recycle.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.recycle.domain.LogisticsExpenditureStatistics;
import com.ruoyi.recycle.mapper.LogisticsExpenditureStatisticsMapper;
import com.ruoyi.recycle.service.ILogisticsExpenditureStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 物流支出统计Service业务层处理
 *
 * @author Wubk
 * @date 2022-05-22
 */
@Service
public class LogisticsExpenditureStatisticsServiceImpl extends ServiceImpl<LogisticsExpenditureStatisticsMapper, LogisticsExpenditureStatistics> implements ILogisticsExpenditureStatisticsService {
    @Autowired
    private LogisticsExpenditureStatisticsMapper logisticsExpenditureStatisticsMapper;

    /**
     * 查询物流支出统计
     *
     * @param id 物流支出统计主键
     * @return 物流支出统计
     */
    @Override
    public LogisticsExpenditureStatistics selectLogisticsExpenditureStatisticsById(Long id) {
        return logisticsExpenditureStatisticsMapper.selectLogisticsExpenditureStatisticsById(id);
    }

    /**
     * 查询物流支出统计列表
     *
     * @param logisticsExpenditureStatistics 物流支出统计
     * @return 物流支出统计
     */
    @Override
    public List<LogisticsExpenditureStatistics> selectLogisticsExpenditureStatisticsList(LogisticsExpenditureStatistics logisticsExpenditureStatistics) {
        return logisticsExpenditureStatisticsMapper.selectLogisticsExpenditureStatisticsList(logisticsExpenditureStatistics);
    }

    /**
     * 新增物流支出统计
     *
     * @param logisticsExpenditureStatistics 物流支出统计
     * @return 结果
     */
    @Override
    public int insertLogisticsExpenditureStatistics(LogisticsExpenditureStatistics logisticsExpenditureStatistics) {
        return logisticsExpenditureStatisticsMapper.insertLogisticsExpenditureStatistics(logisticsExpenditureStatistics);
    }

    /**
     * 修改物流支出统计
     *
     * @param logisticsExpenditureStatistics 物流支出统计
     * @return 结果
     */
    @Override
    public int updateLogisticsExpenditureStatistics(LogisticsExpenditureStatistics logisticsExpenditureStatistics) {
        return logisticsExpenditureStatisticsMapper.updateLogisticsExpenditureStatistics(logisticsExpenditureStatistics);
    }

    /**
     * 批量删除物流支出统计
     *
     * @param ids 需要删除的物流支出统计主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsExpenditureStatisticsByIds(Long[] ids) {
        return logisticsExpenditureStatisticsMapper.deleteLogisticsExpenditureStatisticsByIds(ids);
    }

    /**
     * 删除物流支出统计信息
     *
     * @param id 物流支出统计主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsExpenditureStatisticsById(Long id) {
        return logisticsExpenditureStatisticsMapper.deleteLogisticsExpenditureStatisticsById(id);
    }
}
